local event = require("cocos.framework.components.event")

local OneSprite = class("OneSprite", function()
	return display.newSprite("coin.png")
end)

function OneSprite:ctor()
	event:bind(self)
end

function OneSprite:hide()
	self:setVisible(false)
	self:dispatchEvent({name = "HideSprite"})
end

function OneSprite:onEnter()
end

function OneSprite:onExit()
    self:removeAllEventListeners()
end

return OneSprite
